#include "StaticSpriteWidget.hpp"

StaticSpriteWidget::StaticSpriteWidget(StaticSprite* spr)
	: QGraphicsWidget(spr), spr(spr)
{
	this->setGeometry(0, 0, spr->boundingRect().width(), spr->boundingRect().height());	
}

StaticSpriteWidget::~StaticSpriteWidget()
{}

void StaticSpriteWidget::mousePressEvent(QGraphicsSceneMouseEvent *event)
{	emit this->clicked();	}

void StaticSpriteWidget::setPos(int x, int y)
{	this->spr->setPos(x, y);	}

void StaticSpriteWidget::setDepth(int z)
{	this->spr->setZValue(z);	}

void StaticSpriteWidget::setTransparent(bool val)
{	this->spr->setTransparent(val);	}

void StaticSpriteWidget::del()
{	delete this->spr;	}
